package com.zgxl.common.vo;

/**
 * @author pumbaa
 * @since 1.0
 */
public class ExcelRow implements Comparable<ExcelRow> {
    private String title;
    private int order;
    private String methodName;

    public ExcelRow() {
    }

    public ExcelRow(String title, int order, String methodName) {
        this.title = title;
        this.order = order;
        this.methodName = methodName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    @Override
    public int compareTo(ExcelRow o) {
        return order > o.getOrder() ? 1 : (order < o.order ? -1 : 0);
    }
}
